﻿

{king:user.info userid='(king:userid/)'}

{/king:user.info}






{king:user.info userid='(king:userid/)'}

{/king:user.info}
<script type="text/javascript">function updateavatar() {window.location.reload();}</script>
<?php
global $king;
$userid = "{king:userid/}";
if(!empty($userid)){
require_once('../flash/config.php');
require_once('../flash/avatar.php');



$objAvatar = new Avatar();

	

	

$big_photo  = $objAvatar->avatar_show($userid,'middle');   // big表示图像的大小，有small，middle，big三种类型
	
$uc_avatarflash = $objAvatar->uc_avatar($userid);
	$as=$objAvatar->avatar_file($userid,'middle');
	
	$ima="{king:main/}";
	if($ima!=$as){
		$array=array('userhead'=>$as);
		$king->db->update('%s_user',$array,'userid='.$userid);
	}
echo $big_photo.'<br />';
echo $uc_avatarflash;

		
	}

?>




